package com.example.springboot.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.example.springboot.entity.RoleEntity;
import com.example.springboot.entity.SubmenuEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "权限路由关联返回参数")
public class RoutingResp {

    @Schema(description = "序号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "权限ID")
    @TableField("roleId")
    private Integer roleId;

    @Schema(description = "权限详情")
    private RoleEntity roleEntity;

    @Schema(description = "一级路由ID")
    @TableField("submenuId")
    private Integer submenuId;

    @Schema(description = "一级路由详情")
    private SubmenuEntity submenuEntity;

}
